import request from '@/utils/request.js'

export const register = data => {
  return request.post('/user/registered', data)
}

export const login = data => {
  return request.post('/user/login', data)
}

export const getUser = data => {
  return request.post('/user/login', data)
}

// 获取用户信息
export const getUserInfo = () => {
  return request.get('/user')
}
// 收藏
export const getColl = () => {
  return request.get('/user/favorites')
}

// 查看已经发布房源
export const getGorent = () => {
  return request.post('/user/houses')
}
